package com.accenture.portal.dao.impl.role;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.accenture.portal.dao.role.RoleMapper;
import com.accenture.portal.model.access.Access;
import com.accenture.portal.model.role.Role;


@Repository
public class RoleMapperImpl implements RoleMapper {
	@Autowired
	RoleMapper roleMapper;
	
	@Override
	public List<Role> listAllRoles() {
		return roleMapper.listAllRoles();
	}

	@Override
	public Role getRoleById(Integer roleId) {
		return roleMapper.getRoleById(roleId);
	}

	@Override
	public void insertRole(Role role) {
		roleMapper.insertRole(role);
	}

	@Override
	public void updateRoleBaseInfo(Role role) {
		roleMapper.updateRoleBaseInfo(role);
	}

	@Override
	public int getCountByName(Role role) {
		return roleMapper.getCountByName(role);
	}
	@Override
	public int totalCount() {
		return roleMapper.totalCount();
	}

	@Override
	public List<Role> Page(int start, int end) {
		return roleMapper.Page(start, end);
	}

	@Override
	public List<Access> allAccess() {
		return roleMapper.allAccess();
	}


	@Override
	public void logicalDeleteRole(int roleId) {
		roleMapper.logicalDeleteRole(roleId);
		
	}


}
